package exercises.Charpter7;

class TestOverride{
	protected String Test(){
		System.out.println("TestOverride!");
		return "TestOverride!";
	}
	final public void Test(String str){
		System.out.println("TestOverride!" + str);
	}
}

class Tests extends TestOverride{
	//@Override//注解不能用
	protected String Test(){
		System.out.println("Test!");
		return "Test!";
	}
//	public void Test(String str){//不能覆盖
//		System.out.println("TestOverride!" + str);
//	}
}

public class Twenty{
	public static void main(String[] args){
		Tests a = new Tests();
		a.Test();
	}
}
